{extend name="base" /}
{block name="title"}
<title>财务-{$site_config.site_title}</title>
{/block}
{block name="body"}

<script src="__JS__/iScroll.js" type="text/javascript" charset="utf-8"></script>
<script src="__JS__/Mdate.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/Mdate/needcss/Mdate.css"/>
	<header class="page-header1">
		<!-- ios优化 -->
		<a href="javascript:goBack();"><img src="__STATIC__/img/back02.png" class="back_img" style="float:left;"/></a>
		<!-- <a href="javascript:history.back(-1);location.reload();"><img src="__STATIC__/img/back02.png" class="back_img" style="float:left;"/></a> -->
		<h3>财务</h3>
	</header>
	<script type="text/javascript">
	function goBack(){
		window.history.back(-1);  
	    //解决Safari中后退功能的兼容问题  
	    /*if (navigator.userAgent && /(iPhone|iPad|iPod|Safari)/i.test(navigator.userAgent)) {  
	        window.location.href = window.document.referrer;  
	        //window.location.href = "{:url('home/user/userInfo')}";  
	    } else {  
	        window.history.back(-1);  //根据需要可使用history.go(-1);  
	    }*/  
	}  
	</script>
	<div class="financial">
		<form method="get">
			<div class="demo" action="#">
        		<input type="text" id="dateSelectorOne" placeholder="选择日期" value="{empty name="date"}{else/}{$date}{/empty}" name="date">
        		<!-- <input type="reset" value="重置" class="button"/> -->
        		<!-- <button type="reset" value="Reset" class="button" onclick="setTime();">重置</button> -->
        		<input type="submit" value="确定" class="button"/>
    		</div>
    	</form>
		<div class="financial_month">
			<div class="financial_month_list">
				{empty name="list"}
				<div class="financial_month_list01" style="border: 0;">
					<div class="financial_month_list01_center">
						<div class="financial_month_list01_center_name">暂无数据</div>
					</div>
				</div>
				{/empty}
				{foreach name="list" item="vo"}
				<a href="{:url('home/user/fundInfo',['id'=>$vo['id']])}">
					<div class="financial_month_list01">
						<div class="financial_month_list01_left">
							{gt name="vo.num" value="0"}
							<img src="__STATIC__/img/mine_caiwu_icon02.png" class="caiwu_chongzhi"/>
							{else/}
							<img src="__STATIC__/img/mine_caiwu_icon01.png" class="caiwu_chongzhi"/>
							{/gt}
						</div>
						<div class="financial_month_list01_center">
							<div class="financial_month_list01_center_name">{$change_type[$vo.change_type]}</div>
							<div class="financial_month_list01_center_time">{$vo.time|date_time}</div>
						</div>
						<div class="financial_month_list01_right">{$vo.num}</div>
					</div>
				</a>
				{/foreach}
			</div>
		</div>

	</div>
	<div style="clear: both;margin: 0 auto;overflow: hidden;margin-bottom: 20px;"><div>{$list->render()}</div></div>
	<script type="text/javascript">
		new Mdate("dateSelectorOne",{
			 beginYear: "2018",
		    //此项为Mdate的初始年份，不填写默认为2000
		    //beginMonth: "{empty name="month"}6{else/}{$month}{/empty}",
		    beginMonth: "6",
		    //此项为Mdate的初始月份，不填写默认为1
		    //beginDay: "{empty name="day"}{else/}{$day}{/empty}",
		    beginDay: "1",
		    //此项为Mdate的初始日期，不填写默认为1
		    format: "-",
		});
	</script>
	<script type="text/javascript">
	function setTime(){
		$("#dateSelectorOne").val('');
	}
	</script>
{/block}

